

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;

public class RandomList {
	public static void main(String [] s){
		List<Integer> list1 = new ArrayList<Integer>();
		for(int i =10;i < 1000; i ++){
			list1.add(i);
		}
		System.out.println(Arrays.toString(list1.toArray()));
		int [] arrays = new int[list1.size()];
		
		System.out.println(Arrays.toString(arrays));
		Random r = new Random();
		int i = 0;
		while(i<list1.size()){
			int index = r.nextInt(list1.size());
			if(arrays[index] == 0){
				arrays[index] =list1.get(i);
				i++;
			}
		}
		System.out.println(Arrays.toString(arrays));
	}
}

